[PATCH] Update cmakelists to use system googletest if available.
authorGianfranco Costamagna <costamagnagianfranco@yahoo.it>
Sat, 14 Oct 2023 07:23:02 +0000 (09:23 +0200)
committerGianfranco Costamagna <locutusofborg@debian.org>
Fri, 3 Oct 2025 15:35:05 +0000 (17:35 +0200)
commit88281ad2baebff503e7b93fb9be06339e65373a4
tree2ae95b5f08724396061b0b8d437360ca3b9b0e23
parent8a948037bb1e55571a9b3996c508e599c66a9973
[PATCH] Update cmakelists to use system googletest if available.

There is no need to use the embedded gtest code copy in Linux systems, if they already provide the googletest framework system-wide.
Search for it, and fallback to the embedded one if the system one is not detected.

This patch has been also contributed by Simon Quigley <tsimonq2@debian.org>

Gbp-Pq: Name 1035.patch
CMakeLists.txt
test/CMakeLists.txt